package com.aos.erp.schools.model.common;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @program: erp
 * @description: 区域字典
 * @author: tanzhiyu
 * @create: 2018-11-09 17:38
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("区域字典")
@TableName("t_common_region")
public class Region  implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="主键ID",hidden=true)
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty("父级ID")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty("区域编码")
    @TableField("code")
    private String code ;

    @ApiModelProperty("区域名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("区域简称")
    @TableField("shortname")
    private String shortname;

    @ApiModelProperty("0.国家 1.省 2.市 3.区/县")
    @TableField("leveltype")
    private Integer leveltype;

    @ApiModelProperty("城市简码")
    @TableField("citycode")
    private String citycode;

    @ApiModelProperty("邮编")
    @TableField("zipcode")
    private String zipcode;

    @ApiModelProperty("拼音")
    @TableField("pinyin")
    private String pinyin;
}
